<template>
    <div>
        <video class="video" :src="src" controls></video>
        <scroller style="background-color:#dfdfdf;flex:1;align-items:stretch">
            <div class="bg-white">
                <div class="title-h1">
                    <text class="h1">相台月历</text>
                    <text class="time">2017-12-12</text>
                </div>
                <div class="info">
                    <text class="zuozhe">作者：</text>
                    <text class="text">秦庆明</text>
                </div>
                <div class="info">
                    <text class="zuozhe">描述：</text>
                    <text class="text">描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息描述信息</text>
                </div>
            </div>
            <div class="comment-cont">
                <div class="title-cont comment-top">
                    <div class="ico"></div>
                    <text class="title flex">评论</text>
                    <text class="time">{{"共"+commentList.length+"条评论"}}</text>
                    <image src="http://121.42.150.64:9001/public/images/more.png" style="width:8px;height:18px;" />
                </div>
                <div class="comment-item" v-for="comment in commentList">
                    <div class="img">
                        <img style="width: 66px;height: 66px;border-radius: 30px" src="/resource/img/tx2.jpg" />
                    </div>
                    <div class="comment-in">
                        <div class="comment-hist">
                            <text class="name">bvydhifjkf</text>
                            <text class="comment-nr">视频是斯米兰麻？视频是斯米兰麻？视频是斯米兰麻？视频是斯米兰麻？视频是斯米兰麻？视频是斯米兰麻？</text>
                        </div>
                        <div class="time-hf">
                            <text class="time">06-03</text>
                            <div class="hf">
                                <text class="hf-text">回复 · </text>
                                <text class="hf-text">赞：1562</text>
                            </div>
                        </div>
                        <div class="comment_secondary">
                            <text class="comment_secondary-text">不谙世事的小米：</text>
                            <text class="comment_secondary-text2">是啊，可美了是啊，可美了是啊，可美了是啊，可美了是啊，可美了是啊，可美了是啊，可美了</text>
                        </div>
                    </div>
                </div>
                <div class="comment-empty" v-if="commentList.length==0">
                    <text style="font-size:22px;color:#666666">还没有评论，我来评论第一条吧^_^</text>
                </div>
            </div>
            <div class="comment-area mtop10 bg-white">
                <text class="header">评论</text>
                <textarea class="textarea"></textarea>
            </div>
        </scroller>
        <AppHeader :title="headerTitle" :showBack=true :showPhoto=false></AppHeader>
    
    </div>
</template>

<style>
    .header{
        font-size:38px;
        color:#000000;
    }
    .textarea {
        border-radius: 6px;
        border-width: 1px;
        border-color: #dddddd;
        border: 1px solid #ddd;
        padding: 10px;
        font-size: 38px;
        color: #333333;
        min-height: 34px;
        box-sizing: border-box;
        border-radius: 6px;
        flex: auto;
        margin-left: 16px;
        margin-right: 16px;
                margin-bottom: 16px;

    }
    
    .comment-area {
        align-items: stretch;
    }
    
    .comment-empty {
        align-items: center;
        margin-bottom: 21px;
    }
    
    .content {
        margin-top: 88px;
        background-color: #f2f2f2;
    }
    
    .pics {
        background-color: #000000;
        padding-left: 30px;
        padding-right: 30px;
        height: 472px;
    }
    
    .title-h1 {
        margin-top: 30px;
        flex-direction: row;
        margin-bottom: 20px;
        align-items: flex-end;
    }
    
    .h1 {
        font-size: 34px;
        margin-right: 20px;
    }
    
    .info {
        margin-bottom: 20px;
        flex-direction: row;
    }
    
    .zuozhe {
        font-size: 26px;
        color: #666666;
    }
    
    .text {
        font-size: 26px;
        color: #333333;
        flex: 1;
    }
    
    .title-cont {
        flex-direction: row;
        margin-top: 30px;
        margin-bottom: 30px;
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-bottom-color: #dddddd;
        padding-bottom: 20px;
    }
    
    .ico {
        background-color: #ff6600;
        width: 4px;
        height: 20px;
        margin-top: 6px;
    }
    
    .title {
        font-size: 28px;
        color: #333333;
        margin-left: 10px;
    }
    
    .comment-cont {
        margin-top: 21px;
        background-color: #ffffff;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .comment-hist {}
    
    .name {
        font-size: 26px;
        color: #6b6b6b;
        margin-bottom: 20px;
    }
    
    .comment-nr {
        margin-bottom: 20px;
        font-size: 28px;
        color: #333333;
        width: 600px;
    }
    
    .time-hf {
        justify-content: space-between;
        margin-bottom: 30px;
        display: flex;
        flex-direction: row;
        width: 600px;
    }
    
    .time {
        color: #999999;
        font-size: 20px;
    }
    
    .hf {
        flex-direction: row;
    }
    
    .hf-text {
        font-size: 22px;
        color: #666666;
    }
    
    .comment_secondary {
        display: flex;
        flex-direction: row;
        background-color: #F5F8FA;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 30px;
        line-height: 30px;
        border-radius: 6px;
        margin-bottom: 30px;
        width: 600px;
    }
    
    .comment_secondary-text {
        font-size: 22px;
        color: #666666;
    }
    
    .comment_secondary-text2 {
        font-size: 22px;
        color: #333333;
        width: 400px;
    }
    
    .operate {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        position: fixed;
        width: 750px;
        background-color: rgba(0, 0, 0, .7);
        height: 80px;
        padding-top: 30px;
        padding-left: 80px;
        padding-bottom: 10px;
        bottom: 0;
    }
    
    .cell {
        flex: 1;
        display: flex;
        flex-direction: row;
    }
    
    .ico-cont {
        width: 40px;
        height: 30px;
        align-items: flex-start;
        margin-right: 10px;
    }
    
    .text-o {
        font-size: 22px;
        color: #ffffff;
        flex: auto;
    }
    
    .comment-in {
        display: flex;
        flex-direction: column;
        flex: auto;
    }
    
    .img {
        margin-right: 24px;
    }
    
    .comment-item {
        padding-top: 30px;
        display: flex;
        flex-direction: row;
    }
    
    .comment-top {
        padding-top: 21px;
        padding-bottom: 11px;
        align-items: center;
        flex-direction: row;
        border-bottom-color: #dfdfdf;
        border-bottom-width: 1px;
    }
    
    .ptop10 {
        padding-top: 21px;
    }
    
    .pbottom5 {
        padding-bottom: 11px;
    }
    
    .content-center {
        align-items: center;
    }
    
    .flex {
        flex: 1;
    }
    
    .row {
        flex-direction: row;
    }
    
    .mtop10 {
        margin-top: 21px;
    }
    
    .scroll-content {
        align-items: stretch;
    }
    
    .bg-white {
        background-color: white;
    }
    
    .time-stamp {
        font-size: 26px;
        color: grey;
    }
    
    .article-title {
        font-size: 36px;
        color: black;
    }
    
    .label {
        font-size: 28px;
        color: grey;
    }
    
    .article-content {
        width: 750px;
        height: 1200px;
    }
</style>

<script>
    import AppHeader from '../../components/AppHeader.vue'
    import mixins from '../../mixins'
    
    module.exports = {
        mixins: [mixins],
        components: {
            AppHeader
        },
        data() {
            return {
                headerTitle: "成果展示",
                navList: [],
                commentList: [{},{}]
            }
        },
        methods: {
            getSrc: function() {
                var chengguo = this.$route.params["id"];
                return this.apiDomain + "/chengguo/detail/" + chengguo;
            },
            getResultShowDetail: function() {
                var chengguo = this.$route.params["id"];
                let self = this;
                var data = [];
                self.request({
                    type: "get",
                    url: "/getResultShowDetail",
                    data: {
                        "access_token": self.accessToken,
                        data: [{
                            "id": chengguo,
                        }],
                    }
                }).then(res => {
                    self.showResultList = res.data.resultShows;
    
                });
            }
        }
    }
</script>
